package com.wb.structual.iterator;

import java.util.List;

/**
 * 商品迭代器：具体迭代器
 *
 * @author 魏彪
 */
public class ProductIterator implements AbstractIterator {

    private ProductList productList;

    private List products;

    // 正向遍历游标
    private int cursor1;

    // 逆向遍历游标 17801367521
    private int cursor2;

    public ProductIterator(ProductList productList) {
        this.productList = productList;

        this.products = productList.getObjects();

        cursor1 = 0;

        cursor2 = products.size() - 1;
    }

    @Override
    public void next() {

    }

    @Override
    public boolean isLast() {
        return false;
    }

    @Override
    public void previous() {

    }

    @Override
    public boolean isFirst() {
        return false;
    }

    @Override
    public Object getNextItem() {
        return null;
    }

    @Override
    public Object getPreviousItem() {
        return null;
    }
}
